<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<script type="text/javascript">
	$(function() {
		validReg("addForm");
	});
</script>
<div class="page-content">
	<!--content-->
	<div class="containerTop">
		<a href="javascript:javascript:void(0);"><span></span></a> <span>加班申请</span>
	</div>

	<div class="panel charger">
		<form id="addForm" class="form-horizontal" role="form"	onsubmit="return false;">

			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="col_red">*</span>加班日期：</label>
				<div class="col-sm-10 ">
					<div class="pr">
						<input id="dayStr" name="dayStr"  class="form-control datepicker" type="text"   required data-bv-notempty
						onclick="WdatePicker({startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true,minDate:'%y-%M-%d'})"/>
					</div>
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="col_red">*</span>开始时间：</label>
				<div class="col-sm-10 ">
					<div class="pr">
						<input id="onTime" name="onTime" required data-bv-notempty class="form-control datepicker" type="text" onclick="WdatePicker({dateFmt:'HH:mm'})"/>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="col_red">*</span>结束时间：</label>
				<div class="col-sm-10 ">
					<div class="pr">
						<input id="offTime" name="offTime" required data-bv-notempty  class="form-control datepicker" type="text" onclick="WdatePicker({dateFmt:'HH:mm'})"/>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="col_red">*</span>加班原因：</label>
				<div class="col-sm-10">
					<textarea name="renson" class="form-control" rows="6" required data-bv-notempty  data-bv-stringlength-max="500"  data-bv-stringlength="true"></textarea>
				</div>
			</div>
			<input type="hidden" id="corpId" name="corpId" value="${userModel.corpId }">
			<input type="hidden" id="deptId" name="deptId" value="${userModel.deptId }">
			<input type="hidden" id="workUserId" name="workUserId" value="${userModel.userId }">
			<div class="text-center opareBtm">
				<button class="a-btn1" onclick="validateCallback(this, workAdd.save);">确定</button>
				<button type="button" onclick="menuFullUrl('work/add/myself?curPage=1&pageSize=10');"
					class="a-btn1 grey">返回</button>

			</div>
		</form>

	</div>


	<!--end content-->
</div>